package org.openoa.base.constant.enums;

import lombok.Getter;

/**
 * process node enum
 */
public enum ProcessNodeEnum {

    START_TASK_KEY(1, "task1418018332271"),
    TOW_TASK_KEY(2, "task1418018332272"),
    THREE_TASK_KEY(3, "task1418018332273"),
    FOUR_TASK_KEY(4, "task1418018332274"),
    FIVE_TASK_KEY(5, "task1418018332275"),
    SIX_TASK_KEY(6, "task1418018332276"),
    SEVEN_TASK_KEY(7, "task1418018332277"),
    EIGHT_TASK_KEY(8, "task1418018332278"),
    NINE_TASK_KEY(9, "task1418018332279"),
    TEN_TASK_KEY(10, "task1418018332280"),
    THIRTEEN_TASK_KEY(11, "task1418018332281"),
    FOURTTEEN_TASK_KEY(12, "task1418018332282"),
    FIFTTEEN_TASK_KEY(13, "task1418018332283"),
    FOURTEEN_TASK_KEY(14, "task1418018332284"),
    SEX_TASK_KEY(15, "task1418018332285"),
    SEXTEEN_TASK_KEY(16, "task1418018332286"),
    SEVENTEEN_TASK_KEY(17, "task1418018332287"),
    EIGHTEEN_TASK_KEY(18, "task1418018332288"),
    NIGHTEEN_TASK_KEY(19, "task1418018332289"),
    TWENTY_TASK_KEY(20, "task1418018332290"),
    TWENTYONE_TASK_KEY(21, "task1418018332291"),
    TWENTYTWO_TASK_KEY(22, "task1418018332292"),
    TWENTYTHREE_TASK_KEY(23, "task1418018332293"),
    TWENTYFOUR_TASK_KEY(24, "task1418018332294"),
    TWENTYFIVE_TASK_KEY(25, "task1418018332295"),

    TWENTYSIX_TASK_KEY(26, "task1418018332296"),
    TWENTYSEVEN_TASK_KEY(27, "task1418018332297"),
    TWENTYEIGHT_TASK_KEY(28, "task1418018332298"),
    TWENTYNINE_TASK_KEY(29, "task1418018332299"),
    THIRTY_TASK_KEY(30, "task1418018332300"),
    THIRTYONE_TASK_KEY(31, "task1418018332301"),

    THIRTYTWO_TASK_KEY(32, "task1418018332302"),
    THIRTYTHREE_TASK_KEY(33, "task1418018332303"),
    THIRTYFOUR_TASK_KEY(34, "task1418018332304"),
    THIRTYFIVE_TASK_KEY(35, "task1418018332305"),
    THIRTYSIX_TASK_KEY(36, "task1418018332306"),
    THIRTYTSEVEN_TASK_KEY(37, "task1418018332307"),
    THIRTYEIGHT_TASK_KEY(38, "task1418018332308"),
    THIRTYNINE_TASK_KEY(39, "task1418018332309"),

    FORTY_TASK_KEY(40, "task1418018332400"),
    FORTY_ONE_TASK_KEY(41, "task1418018332401"),
    FORTY_TWO_TASK_KEY(42, "task1418018332402"),
    FORTY_THREE_TASK_KEY(43, "task1418018332403"),
    FORTY_FOUR_TASK_KEY(44, "task1418018332404"),
    FORTY_FIVE_TASK_KEY(45, "task1418018332405"),
    FORTY_SIX_TASK_KEY(46, "task1418018332406"),
    FORTY_SEVEN_TASK_KEY(47, "task1418018332407"),
    FORTY_EIGHT_TASK_KEY(48, "task1418018332408"),
    FORTY_NINE_TASK_KEY(49, "task1418018332409"),


    FIFTY_TASK_KEY(50, "task1418018332450"),
    FIFTY_ONE_TASK_KEY(51, "task1418018332451"),
    FIFTY_TWO_TASK_KEY(52, "task1418018332452"),
    FIFTY_THREE_TASK_KEY(53, "task1418018332453"),
    FIFTY_FOUR_TASK_KEY(54, "task1418018332454"),
    FIFTY_FIVE_TASK_KEY(55, "task1418018332455"),
    FIFTY_SIX_TASK_KEY(56, "task1418018332456"),
    FIFTY_SEVEN_TASK_KEY(57, "task1418018332457"),
    FIFTY_EIGHT_TASK_KEY(58, "task1418018332458"),
    FIFTY_NINE_TASK_KEY(59, "task1418018332459"),

    SIXTY_TASK_KEY(60, "task1418018332460"),
    SIXTY_ONE_TASK_KEY(61, "task1418018332461"),
    SIXTY_TWO_TASK_KEY(62, "task1418018332462"),
    SIXTY_THREE_TASK_KEY(63, "task1418018332463"),
    SIXTY_FOUR_TASK_KEY(64, "task1418018332464"),
    SIXTY_FIVE_TASK_KEY(65, "task1418018332465"),
    SIXTY_SIX_TASK_KEY(66, "task1418018332466"),
    SIXTY_SEVEN_TASK_KEY(67, "task1418018332467"),
    SIXTY_EIGHT_TASK_KEY(68, "task1418018332468"),
    SIXTY_NINE_TASK_KEY(69, "task1418018332469"),

    SEVENTY_TASK_KEY(70, "task1418018332470"),
    SEVENTY_ONE_TASK_KEY(71, "task1418018332471"),
    SEVENTY_TWO_TASK_KEY(72, "task1418018332472"),
    SEVENTY_THREE_TASK_KEY(73, "task1418018332473"),
    SEVENTY_FOUR_TASK_KEY(74, "task1418018332474"),
    SEVENTY_FIVE_TASK_KEY(75, "task1418018332475"),
    SEVENTY_SIX_TASK_KEY(76, "task1418018332476"),
    SEVENTY_SEVEN_TASK_KEY(77, "task1418018332477"),
    SEVENTY_EIGHT_TASK_KEY(78, "task1418018332478"),
    SEVENTY_NINE_TASK_KEY(79, "task1418018332479"),
    EIGHTY_TASK_KEY(80, "task1418018332480"),

    EIGHTY_ONE_TASK_KEY(81, "task1418018332481"),
    EIGHTY_TWO_TASK_KEY(82, "task1418018332482"),
    EIGHTY_THREE_TASK_KEY(83, "task1418018332483"),
    EIGHTY_FOUR_TASK_KEY(84, "task1418018332484"),
    EIGHTY_FIVE_TASK_KEY(85, "task1418018332485"),
    EIGHTY_SIX_TASK_KEY(86, "task1418018332486"),
    EIGHTY_SEVEN_TASK_KEY(87, "task1418018332487"),
    EIGHTY_EIGHT_TASK_KEY(88, "task1418018332488"),
    EIGHTY_NINE_TASK_KEY(89, "task1418018332489"),

    NINETY_TASK_KEY(90, "task1418018332490"),
    NINETY_ONE_TASK_KEY(91, "task1418018332491"),
    NINETY_TWO_TASK_KEY(92, "task1418018332492"),
    NINETY_THREE_TASK_KEY(93, "task1418018332493"),
    NINETY_FOUR_TASK_KEY(94, "task1418018332494"),
    NINETY_FIVE_TASK_KEY(95, "task1418018332495"),
    NINETY_SIX_TASK_KEY(96, "task1418018332496"),
    NINETY_SEVEN_TASK_KEY(97, "task1418018332497"),
    NINETY_EIGHT_TASK_KEY(98, "task1418018332498"),
    NINETY_NINE_TASK_KEY(99, "task1418018332499"),

    ONE_HUNDRED_TASK_KEY(100, "task1418018332500"),
    ONE_HUNDRED_ONE_TASK_KEY(101, "task1418018332501"),
    ONE_HUNDRED_TWO_TASK_KEY(102, "task1418018332502"),
    ONE_HUNDRED_THREE_TASK_KEY(103, "task1418018332503"),
    ONE_HUNDRED_FOUR_TASK_KEY(104, "task1418018332504"),
    ONE_HUNDRED_FIVE_TASK_KEY(105, "task1418018332505"),
    ONE_HUNDRED_SIX_TASK_KEY(106, "task1418018332506"),
    ONE_HUNDRED_SEVEN_TASK_KEY(107, "task1418018332507"),
    ONE_HUNDRED_EIGHT_TASK_KEY(108, "task1418018332508"),
    ONE_HUNDRED_NINE_TASK_KEY(109, "task1418018332509"),

    ONE_HUNDRED_TEN_TASK_KEY(110, "task1418018332510"),
    ONE_HUNDRED_ELEVEN_TASK_KEY(111, "task1418018332511"),
    ONE_HUNDRED_TWELVE_TASK_KEY(112, "task1418018332512"),
    ONE_HUNDRED_THIRTEEN_TASK_KEY(113, "task1418018332513"),
    ONE_HUNDRED_FOURTEEN_TASK_KEY(114, "task1418018332514"),
    ONE_HUNDRED_FIFTEEN_TASK_KEY(115, "task1418018332515"),
    ONE_HUNDRED_SIXTEEN_TASK_KEY(116, "task1418018332516"),
    ONE_HUNDRED_SEVENTEEN_TASK_KEY(117, "task1418018332517"),
    ONE_HUNDRED_EIGHTEEN_TASK_KEY(118, "task1418018332518"),
    ONE_HUNDRED_NINETEEN_TASK_KEY(119, "task1418018332519"),
    ONE_HUNDRED_TWENTY_TASK_KEY(120, "task1418018332520"),

    ONE_HUNDRED_TWENTY_ONE_TASK_KEY(121, "task1418018332521"),
    ONE_HUNDRED_TWENTY_TWO_TASK_KEY(122, "task1418018332522"),
    ONE_HUNDRED_TWENTY_THREE_TASK_KEY(123, "task1418018332523"),
    ONE_HUNDRED_TWENTY_FOUR_TASK_KEY(124, "task1418018332524"),
    ONE_HUNDRED_TWENTY_FIVE_TASK_KEY(125, "task1418018332525"),
    ONE_HUNDRED_TWENTY_SIX_TASK_KEY(126, "task1418018332526"),
    ONE_HUNDRED_TWENTY_SEVEN_TASK_KEY(127, "task1418018332527"),
    ONE_HUNDRED_TWENTY_EIGHT_TASK_KEY(128, "task1418018332528"),
    ONE_HUNDRED_TWENTY_NINE_TASK_KEY(129, "task1418018332529"),
    ONE_HUNDRED_THIRTY_TASK_KEY(130, "task1418018332530"),
    ONE_HUNDRED_THIRTY_ONE_TASK_KEY(131, "task1418018332531"),
    ONE_HUNDRED_THIRTY_TWO_TASK_KEY(132, "task1418018332532"),
    ONE_HUNDRED_THIRTY_THREE_TASK_KEY(133, "task1418018332533"),
    ONE_HUNDRED_THIRTY_FOUR_TASK_KEY(134, "task1418018332534"),
    ONE_HUNDRED_THIRTY_FIVE_TASK_KEY(135, "task1418018332535"),
    ONE_HUNDRED_THIRTY_SIX_TASK_KEY(136, "task1418018332536"),
    ONE_HUNDRED_THIRTY_SEVEN_TASK_KEY(137, "task1418018332537"),
    ONE_HUNDRED_THIRTY_EIGHT_TASK_KEY(138, "task1418018332538"),
    ONE_HUNDRED_THIRTY_NINE_TASK_KEY(139, "task1418018332539"),
    ONE_HUNDRED_FORTY_TASK_KEY(140, "task1418018332540"),
    ONE_HUNDRED_FORTY_ONE_TASK_KEY(141, "task1418018332541"),
    ONE_HUNDRED_FORTY_TWO_TASK_KEY(142, "task1418018332542"),
    ONE_HUNDRED_FORTY_THREE_TASK_KEY(143, "task1418018332543"),
    ONE_HUNDRED_FORTY_FOUR_TASK_KEY(144, "task1418018332544"),
    ONE_HUNDRED_FORTY_FIVE_TASK_KEY(145, "task1418018332545"),
    ONE_HUNDRED_FORTY_SIX_TASK_KEY(146, "task1418018332546"),
    ONE_HUNDRED_FORTY_SEVEN_TASK_KEY(147, "task1418018332547"),
    ONE_HUNDRED_FORTY_EIGHT_TASK_KEY(148, "task1418018332548"),
    ONE_HUNDRED_FORTY_NINE_TASK_KEY(149, "task1418018332549"),
    ONE_HUNDRED_FIFTY_TASK_KEY(150, "task1418018332550"),
    ONE_HUNDRED_FIFTY_ONE_TASK_KEY(151, "task1418018332551"),
    ONE_HUNDRED_FIFTY_TWO_TASK_KEY(152, "task1418018332552"),
    ONE_HUNDRED_FIFTY_THREE_TASK_KEY(153, "task1418018332553"),
    ONE_HUNDRED_FIFTY_FOUR_TASK_KEY(154, "task1418018332554"),
    ONE_HUNDRED_FIFTY_FIVE_TASK_KEY(155, "task1418018332555"),
    ONE_HUNDRED_FIFTY_SIX_TASK_KEY(156, "task1418018332556"),
    ONE_HUNDRED_FIFTY_SEVEN_TASK_KEY(157, "task1418018332557"),
    ONE_HUNDRED_FIFTY_EIGHT_TASK_KEY(158, "task1418018332558"),
    ONE_HUNDRED_FIFTY_NINE_TASK_KEY(159, "task1418018332559"),
    ONE_HUNDRED_SIXTY_TASK_KEY(160, "task1418018332560"),
    ONE_HUNDRED_SIXTY_ONE_TASK_KEY(161, "task1418018332561"),
    ONE_HUNDRED_SIXTY_TWO_TASK_KEY(162, "task1418018332562"),
    ONE_HUNDRED_SIXTY_THREE_TASK_KEY(163, "task1418018332563"),
    ONE_HUNDRED_SIXTY_FOUR_TASK_KEY(164, "task1418018332564"),
    ONE_HUNDRED_SIXTY_FIVE_TASK_KEY(165, "task1418018332565"),
    ONE_HUNDRED_SIXTY_SIX_TASK_KEY(166, "task1418018332566"),
    ONE_HUNDRED_SIXTY_SEVEN_TASK_KEY(167, "task1418018332567"),
    ONE_HUNDRED_SIXTY_EIGHT_TASK_KEY(168, "task1418018332568"),
    ONE_HUNDRED_SIXTY_NINE_TASK_KEY(169, "task1418018332569"),
    ONE_HUNDRED_SEVENTY_TASK_KEY(170, "task1418018332570"),
    ONE_HUNDRED_SEVENTY_ONE_TASK_KEY(171, "task1418018332571"),
    ONE_HUNDRED_SEVENTY_TWO_TASK_KEY(172, "task1418018332572"),
    ONE_HUNDRED_SEVENTY_THREE_TASK_KEY(173, "task1418018332573"),
    ONE_HUNDRED_SEVENTY_FOUR_TASK_KEY(174, "task1418018332574"),
    ONE_HUNDRED_SEVENTY_FIVE_TASK_KEY(175, "task1418018332575"),
    ONE_HUNDRED_SEVENTY_SIX_TASK_KEY(176, "task1418018332576"),
    ONE_HUNDRED_SEVENTY_SEVEN_TASK_KEY(177, "task1418018332577"),
    ONE_HUNDRED_SEVENTY_EIGHT_TASK_KEY(178, "task1418018332578"),
    ONE_HUNDRED_SEVENTY_NINE_TASK_KEY(179, "task1418018332579"),
    ONE_HUNDRED_EIGHTY_TASK_KEY(180, "task1418018332580"),
    ONE_HUNDRED_EIGHTY_ONE_TASK_KEY(181, "task1418018332581"),
    ONE_HUNDRED_EIGHTY_TWO_TASK_KEY(182, "task1418018332582"),
    ONE_HUNDRED_EIGHTY_THREE_TASK_KEY(183, "task1418018332583"),
    ONE_HUNDRED_EIGHTY_FOUR_TASK_KEY(184, "task1418018332584"),
    ONE_HUNDRED_EIGHTY_FIVE_TASK_KEY(185, "task1418018332585"),
    ONE_HUNDRED_EIGHTY_SIX_TASK_KEY(186, "task1418018332586"),
    ONE_HUNDRED_EIGHTY_SEVEN_TASK_KEY(187, "task1418018332587"),
    ONE_HUNDRED_EIGHTY_EIGHT_TASK_KEY(188, "task1418018332588"),
    ONE_HUNDRED_EIGHTY_NINE_TASK_KEY(189, "task1418018332589"),
    ONE_HUNDRED_NINETY_TASK_KEY(190, "task1418018332590"),
    ONE_HUNDRED_NINETY_ONE_TASK_KEY(191, "task1418018332591"),
    ONE_HUNDRED_NINETY_TWO_TASK_KEY(192, "task1418018332592"),
    ONE_HUNDRED_NINETY_THREE_TASK_KEY(193, "task1418018332593"),
    ONE_HUNDRED_NINETY_FOUR_TASK_KEY(194, "task1418018332594"),
    ONE_HUNDRED_NINETY_FIVE_TASK_KEY(195, "task1418018332595"),
    ONE_HUNDRED_NINETY_SIX_TASK_KEY(196, "task1418018332596"),
    ONE_HUNDRED_NINETY_SEVEN_TASK_KEY(197, "task1418018332597"),
    ONE_HUNDRED_NINETY_EIGHT_TASK_KEY(198, "task1418018332598"),
    ONE_HUNDRED_NINETY_NINE_TASK_KEY(199, "task1418018332599"),
    TWO_HUNDRED_TASK_KEY(200, "task1418018332600"),
    ;
    @Getter
    private Integer code;

    @Getter
    private String desc;

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    ProcessNodeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static String getDescByCode(Integer code) {
        for (ProcessNodeEnum statusType : ProcessNodeEnum.values()) {
            if (statusType.code.equals(code)) {
                return statusType.desc;
            }
        }
        return null;
    }

    public static Integer getCodeByDesc(String desc) {
        for (ProcessNodeEnum statusType : ProcessNodeEnum.values()) {
            if (statusType.desc.equals(desc)) {
                return statusType.code;
            }
        }
        return null;
    }
}
